﻿<%@ Page Title="" Language="C#" MasterPageFile="~/LotteryMasterPage.master" AutoEventWireup="true" CodeFile="SaleCommentList.aspx.cs" Inherits="SaleCommentList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="navMenu">
<ul>
    <li class="onelink"><a href='Sale.aspx'>首页</a></li>
    <li><a href='SaleAnnoList.aspx'>公告</a></li>
    <li><a rel='dropmenu3'>通知</a></li>
    </ul>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:testLottery %>" 
        
        
        SelectCommand="SELECT [id], [from], [tmember], [title], [time] FROM [Notice_Member] WHERE ([tmember] = @tmember) ORDER BY [id] DESC">
        <SelectParameters>
            <asp:QueryStringParameter Name="tmember" QueryStringField="to" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</div>
<script type='text/javascript' src='../Scripts/dropdown.js'></script>
<ul id="dropmenu3" class="dropMenu">
    <li><a href="SaleWrComment.aspx" >写通知</a></li>
    <li><a href="SaleCommentList.aspx" >读通知</a></li>
    <li class="end" ></li>
</ul>
<script type="text/javascript">    cssdropdown.startchrome("navMenu")</script>

<div class="AnnoListMainBody">
<div class="AnnoListBody">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
        DataSourceID="SqlDataSource1" ForeColor="#333333" 
        GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="id" HeaderText="id" SortExpression="id" Visible="false"/>
            <asp:BoundField DataField="tmember" HeaderText="tmember" 
                SortExpression="tmember" Visible="false"/>
            <asp:TemplateField HeaderText="标题" SortExpression="title" ItemStyle-Width="300px" ItemStyle-HorizontalAlign="Center">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("title") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                <a href='SaleRdComment.aspx?<%# Eval("id") %>'>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("title") %>'></asp:Label>
                    </a>
                </ItemTemplate>
                <ControlStyle ForeColor="Black" />

<ItemStyle HorizontalAlign="Center" Width="300px"></ItemStyle>
            </asp:TemplateField>
            <asp:BoundField DataField="from" HeaderText="来自" 
                SortExpression="from" ItemStyle-Width="100px" 
                ItemStyle-HorizontalAlign="Center">
<ItemStyle HorizontalAlign="Center" Width="100px"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="time" HeaderText="发送时间" SortExpression="time" 
                ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Center">
<ItemStyle HorizontalAlign="Center" Width="200px"></ItemStyle>
            </asp:BoundField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
</div>
</div>
</asp:Content>

